﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ATMSystem
{
    class Program
    {
        static void Main(string[] args)
        {
            Bank b = new Bank();
            Customer c1 = new Customer("Иван", "Иванов", 1000);
            //Customer c2 = new Customer("Петр", "Петров", 5000);

            c1.GetMoney(b,1000);
            c1.CreateAccount(b);
            Console.WriteLine(c1);
            c1.GiveMoney(b, 100);
            Console.WriteLine(c1);
            c1.GetAccountBalance(b);
            c1.GetMoney(b, 300);
            Console.WriteLine(c1);
            c1.GetMoney(b, 50);
            Console.WriteLine(c1);
            c1.CloseAcount(b);
            Console.WriteLine(c1);
            c1.GiveMoney(b, 100);
            Console.WriteLine(c1);
        }
    }
}
